using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class TrainControlAdaptor : MonoBehaviour
{
    public WSMGameStudio.RailroadSystem.TrainController_v3 trainController;

    [Range(-1, 1)]
    public float acceleration = 0f;

    public float minRunSpeed = 10f;

    [Range(-50, 50)]
    public float currentVel = 0;
    public bool setVel;

    private void Update() 
    {
        trainController.acceleration = acceleration;
    }

    public void SetAcceleration(float acc = 0f)
    {
        this.acceleration = acc;
    }

}
